<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('疫情风险排查列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>行业主管街道：</label>
                                <input type="text" name="street"/>
                            </li>
                            <li>
                                <label>上报日期：</label>
                                <input type="text" name="commitDate"/>
                            </li>
                            <li>
                                <label>紧急联系人信息：</label>
                                <input type="text" name="emergencyContact"/>
                            </li>
                            <li>
                                <label>职工姓名：</label>
                                <input type="text" name="sname"/>
                            </li>
                            <li>
                                <label>身份证号：</label>
                                <input type="text" name="idNumber"/>
                            </li>
                            <li>
                                <label>手机号：</label>
                                <input type="text" name="phone"/>
                            </li>
                            <li>
                                <label>职工返京日期：</label>
                                <input type="text" name="returnBjDate"/>
                            </li>
                            <li>
                                <label>住址所在区县：</label>
                                <input type="text" name="addressArea"/>
                            </li>
                            <li>
                                <label>住址所在街道：</label>
                                <input type="text" name="addressStreet"/>
                            </li>
                            <li>
                                <label>住址所在社区：</label>
                                <input type="text" name="addressCommunity"/>
                            </li>
                            <li>
                                <label>到访过中高风险地区名称：</label>
                                <input type="text" name="addressDetail"/>
                            </li>
                            <li>
                                <label>是否在社区居住：</label>
                                <input type="text" name="liveInCommunity"/>
                            </li>
                            <li>
                                <label>返京后是否已向居住社区报到：</label>
                                <input type="text" name="reportedCommunityReturn"/>
                            </li>
                            <li>
                                <label>回京后是否已进行核酸检测：</label>
                                <input type="text" name="acidTestsReturn"/>
                            </li>
                            <li>
                                <label>核酸检测结果：</label>
                                <input type="text" name="acidTestsResult"/>
                            </li>
                            <li>
                                <label>备注：</label>
                                <input type="text" name="bak"/>
                            </li>
                            <li>
                                <label>是否是通勤人员：</label>
                                <input type="text" name="tongqinState"/>
                            </li>
                            <li>
                                <label>是否已复工：</label>
                                <input type="text" name="fugongState"/>
                            </li>
                            <li>
                                <label>社区要求居家/公司要求居家/集中隔离：</label>
                                <input type="text" name="geliState"/>
                            </li>
                            <li>
                                <label>隔离剩余天数：</label>
                                <input type="text" name="geliLastNumber"/>
                            </li>
                            <li>
                                <label>隔离复工日期：</label>
                                <input type="text" name="geliFugongDate"/>
                            </li>
                            <li>
                                <label>因为谁隔离的，记录公司要求隔离人员：</label>
                                <input type="text" name="geliFrom"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:check:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:check:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:check:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:check:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:check:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:check:remove')}]];
        var prefix = ctx + "system/check";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "疫情风险排查",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键UUID',
                    visible: false
                },
                {
                    field: 'street',
                    title: '行业主管街道'
                },
                {
                    field: 'commitDate',
                    title: '上报日期'
                },
                {
                    field: 'emergencyContact',
                    title: '紧急联系人信息'
                },
                {
                    field: 'sname',
                    title: '职工姓名'
                },
                {
                    field: 'idNumber',
                    title: '身份证号'
                },
                {
                    field: 'phone',
                    title: '手机号'
                },
                {
                    field: 'returnBjDate',
                    title: '职工返京日期'
                },
                {
                    field: 'addressArea',
                    title: '住址所在区县'
                },
                {
                    field: 'addressStreet',
                    title: '住址所在街道'
                },
                {
                    field: 'addressCommunity',
                    title: '住址所在社区'
                },
                {
                    field: 'addressDetail',
                    title: '到访过中高风险地区名称'
                },
                {
                    field: 'liveInCommunity',
                    title: '是否在社区居住'
                },
                {
                    field: 'reportedCommunityReturn',
                    title: '返京后是否已向居住社区报到'
                },
                {
                    field: 'acidTestsReturn',
                    title: '回京后是否已进行核酸检测'
                },
                {
                    field: 'acidTestsResult',
                    title: '核酸检测结果'
                },
                {
                    field: 'bak',
                    title: '备注'
                },
                {
                    field: 'tongqinState',
                    title: '是否是通勤人员'
                },
                {
                    field: 'fugongState',
                    title: '是否已复工'
                },
                {
                    field: 'geliState',
                    title: '社区要求居家/公司要求居家/集中隔离'
                },
                {
                    field: 'geliLastNumber',
                    title: '隔离剩余天数'
                },
                {
                    field: 'geliFugongDate',
                    title: '隔离复工日期'
                },
                {
                    field: 'geliFrom',
                    title: '因为谁隔离的，记录公司要求隔离人员'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>